Which of the following scripts would set the database recovery model for sys.database?
Correct Answer: A
The script that would set the database recovery model for sys.database is option A. This script uses the ALTER DATABASE statement to modify the recovery model of the sys.database to full with no wait. The other options either have syntax errors, use incorrect keywords, or do not specify the recovery model correctly. References: CompTIA DataSys+ Course Outline, Domain 3.0 Database Management and Maintenance, Objective 3.1 Given a scenario, perform common database maintenance tasks.
Question 77
Which of the following cloud storage options provides users with endpoints to retrieve data via REST API?
Correct Answer: B
The cloud storage option that provides users with endpoints to retrieve data via REST API is object. Object storage is a type of cloud storage that stores data as objects, which consist of data, metadata, and a unique identifier. Object storage does not use any hierarchy or structure to organize data, but rather uses flat namespaces that allow users to access data using the unique identifier. Object storage also provides users with endpoints to retrieve data via REST API (Representational State Transfer Application Programming Interface), which is a standard way of communicating with web services using HTTP methods (such as GET, POST, PUT, DELETE) and formats (such as JSON, XML). Object storage is suitable for storing large amounts of unstructured data that do not require frequent changes or complex queries. The other options are either different types of cloud storage or not related to cloud storage at all. For example, network file storage is a type of cloud storage that stores data as files in folders using protocols such as NFS (Network File System) or SMB (Server Message Block); ephemeral storage is a type of temporary storage that stores data only for the duration of a session or process; iBIock is not a valid acronym or type of cloud storage. References: CompTIA DataSys+ Course Outline, Domain 2.0 Database Deployment, Objective 2.1 Given a scenario, select an appropriate database deployment method.
Question 78
A database administrator is updating an organization's ERD. Which of the following is the best option for the database administrator to use?
Correct Answer: C
The best option for the database administrator to use to update an organization's ERD is a UML tool. A UML tool is a software application that allows users to create, edit, and visualize diagrams using the Unified Modeling Language (UML). UML is a standard language for modeling software systems and their components, such as classes, objects, relationships, behaviors, etc. UML can also be used to create entity relationship diagrams (ERDs), which are graphical representations of the entities (tables), attributes (columns), and relationships (constraints) in a database. A UML tool can help the administrator to update an organization's ERD by providing features such as drag-and-drop, templates, symbols, validation, etc. The other options are either not suitable or not optimal for this task. For example, a word processor is a software application that allows users to create and edit text documents; a spreadsheet is a software application that allows users to organize and manipulate data in rows and columns; an HTML editor is a software application that allows users to create and edit web pages using HyperText Markup Language (HTML). References: CompTIA DataSys+ Course Outline, Domain 2.0 Database Deployment, Objective 2.2 Given a scenario, create database objects using scripting and programming languages.
Question 79
Which of the following constraints is used to enforce referential integrity?
Correct Answer: B
The constraint that is used to enforce referential integrity is foreign key. A foreign key is a column or a set of columns in a table that references the primary key of another table. A primary key is a column or a set of columns in a table that uniquely identifies each row in the table. Referential integrity is a rule that ensures that the values in the foreign key column match the values in the primary key column of the referenced table. Referential integrity helps maintain the consistency and accuracy of the data across related tables. The other options are either different types of constraints or not related to referential integrity at all. For example, a surrogate key is a column that is artificially generated to serve as a primary key, such as an auto-increment number or a GUID (Globally Unique Identifier); a unique key is a column or a set of columns in a table that uniquely identifies each row in the table, but it can have null values unlike a primary key; there is no such constraint as TID. Reference: CompTIA DataSys+ Course Outline, Domain 1.0 Database Fundamentals, Objective 1.2 Given a scenario, execute database tasks using scripting and programming languages.
Question 80
(A database manager would like to reduce the overhead caused by log-based recoveries. Which of the following should the manager use to best mitigate the situation?)
Correct Answer: B
The correct answer is B. Checkpoints. CompTIA DataSys+ explains that checkpoints play a critical role in database recovery mechanisms by limiting the amount of transaction log data that must be processed during recovery. Log-based recovery relies on transaction logs to restore the database to a consistent state after a failure. If checkpoints are infrequent, the database engine must replay a large portion of the transaction log, which increases recovery time and system overhead. A checkpoint is a process where the database writes all modified (dirty) pages from memory to disk and records a synchronization point in the transaction log. After a checkpoint completes, the database knows that all changes up to that point are safely stored on disk. During recovery, the system only needs to process log entries that occurred after the most recent checkpoint, significantly reducing recovery workload and time. DataSys+ highlights checkpoints as a key performance and availability feature, especially in systems with high transaction volumes. Option A, deadlocks, are concurrency issues that occur when two or more transactions block each other indefinitely. While deadlock handling is important for transaction throughput, it does not reduce log-based recovery overhead. Option C, locks, control concurrent access to data and help maintain consistency, but they do not affect how much log data must be replayed during recovery. Option D, indexes, improve query performance but can actually increase logging activity because index changes are also logged. CompTIA DataSys+ emphasizes that effective recovery planning includes optimizing logging behavior and checkpoint frequency. Properly configured checkpoints strike a balance between runtime performance and recovery efficiency by reducing excessive log replay without causing unnecessary disk I/O. Therefore, to best mitigate the overhead caused by log-based recoveries, the database manager should use checkpoints, making option B the correct and fully verified answer.