Exam Information
Free practice questions with explanations
Oracle 1Z0-908 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 15
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Architecture
A retail company runs MySQL 8.0 with InnoDB. Its order-processing application opens roughly 4,000 short-lived client connections per minute during peak hours, and the DBA team has observed that much of the server's CPU is spent on thread creation and teardown. The team wants to reduce this overhead without changing application code and without allowing the connection count to exceed what the server can handle. Which change is the BEST fit?
Correct Answer: BExplanationThe thread pool plugin in MySQL Enterprise Edition reuses worker threads instead of creating one thread per connection, which directly addresses the cost of thread creation and teardown, and thread_pool_size controls how many worker groups run statements in parallel. Raising max_connections only allows more threads to be created and makes the CPU problem worse, which the stem rules out. Setting innodb_thread_concurrency to 0 removes InnoDB's admission control rather than reducing thread overhead. Enlarging back_log only changes how many TCP connection requests wait in the listen queue; it does not reduce per-connection thread costs.
-
2 Question 2 Drag and drop Backups and Recovery
A financial services firm must restore a 900 GB production MySQL 8.0 instance to a point in time 40 minutes before a faulty batch job ran. Nightly full physical backups are taken with MySQL Enterprise Backup, and binary logs are retained for seven days. Match each recovery requirement to the tool or file that satisfies it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Capture the binary log position of the last good transaction for the replayRestore the physical data files from the most recent full backup quicklyReplay transactions committed after the backup up to the faulty batch startBinary log file and position recorded in the backup metadatamysqldump --single-transaction logical exportmysqlbinlog with a stop-datetime optionmysqlbackup --backup-dir restore operationRelay log applier with a delayed replication settingCorrect Answer:- Restore the physical data files from the most recent full backup quickly → mysqlbackup --backup-dir restore operation
- Replay transactions committed after the backup up to the faulty batch start → mysqlbinlog with a stop-datetime option
- Capture the binary log position of the last good transaction for the replay → Binary log file and position recorded in the backup metadata
ExplanationMySQL Enterprise Backup restores physical files quickly for a large database, which logical dumps cannot match at 900 GB. Point-in-time recovery is performed by replaying binary log events with mysqlbinlog, bounded by a stop time or position. The backup metadata records the binary log coordinates at backup time, which is what the replay starts from. A logical mysqldump export would take far too long to reload at this size, and a delayed replica is a high-availability design choice rather than a restore tool for an already-corrupted primary.
-
3 Question 3 Single choice High Availability Techniques
A logistics company operates an InnoDB Cluster with three MySQL 8.0 members in single-primary mode. During a network partition, the primary loses quorum with the two secondaries, and the cluster stops accepting writes as designed. Operations confirms that the two surviving members are healthy and that the lost data center will not return for at least six hours. The company must restore write service now while keeping the cluster consistent. Which action should the DBA take?
Correct Answer: DExplanationWhen a partition leaves the surviving members without quorum, cluster.forceQuorumUsingPartitionOf() run against a healthy member reforms the group from the members in that partition, restoring write service while the lost site is unavailable. dba.rebootClusterFromCompleteOutage() applies only when all members are down, which is not the case here. Setting group_replication_force_members manually on each member is a low-level workaround that bypasses the AdminAPI and risks split-brain if done inconsistently. Removing the instance with a force option does not restore quorum on its own and fails to address the immediate write outage.
-
4 Question 4 Multiple choice Monitoring and Maintenance
A SaaS vendor's MySQL 8.0 server shows intermittent application timeouts. The DBA needs to find which sessions hold locks and blocked requests while the workload is live, without restarting the server or changing the application. The DBA also wants a durable, queryable record of connection and query activity for later compliance review. Which TWO actions meet these requirements? (Choose two.)
Correct Answer: C, DExplanationThe performance_schema data_locks and data_lock_waits tables expose current lock holders and waiters in MySQL 8.0, so they can be queried live without a restart. MySQL Enterprise Audit with a filter produces a durable, configurable audit trail suitable for compliance. The general query log captures everything but is not a governed, filterable audit record and is costly under load. Restarting the server is excluded by the stem. SHOW ENGINE INNODB STATUS is a point-in-time snapshot and cannot serve as a retained record.
-
5 Question 5 Single choice Query Optimization
A reporting query on a 200-million-row orders table filters by customer_id and status and sorts by order_date descending, using LIMIT 20. EXPLAIN shows a filesort and examines far more rows than it returns. The table already has a single-column index on customer_id. The DBA can add only one index, and the table must remain writable during the change with minimal locking. Which index is the BEST choice?
Correct Answer: AExplanationWith an equality predicate on customer_id, an index leading with customer_id followed by order_date DESC lets InnoDB read matching rows already in sorted order, eliminating the filesort and stopping early at the LIMIT. Placing status before order_date would force a sort after the range on status is evaluated, reintroducing the filesort. Leading with order_date does not support the equality filter efficiently and would scan much of the table. A second separate index is ruled out because the DBA may add only one index.
-
6 Question 6 Dropdown Server Installation and Configuration
A platform team runs two independent MySQL 8.0 servers on one Linux host, each with its own data directory, port and socket. They want a single option file that defines the shared settings, with per-instance sections, and they want each server started explicitly by name. Complete the command and configuration by selecting the correct value for each blank.
Choose the correct value for each blank.
Start the second instance with: mysqld --defaults-group-suffix= --defaults-file=/etc/my.cnf
In /etc/my.cnf, the section for that instance is [mysqld] containing port=3307 and socket=/var/run/mysqld/mysqld2.sockCorrect Answer:Start the second instance with: mysqld --defaults-group-suffix=_2 --defaults-file=/etc/my.cnf
In /etc/my.cnf, the section for that instance is [mysqld_2] containing port=3307 and socket=/var/run/mysqld/mysqld2.sockExplanationThe --defaults-group-suffix option makes mysqld also read the group named with the suffix appended, so a suffix of _2 reads [mysqld_2] in addition to [mysqld]. The matching section in the option file must then be named [mysqld_2] for that instance. Using a hyphenated or differently spelled suffix would read a group that does not exist, leaving the second server with the wrong port and socket. The first server continues to read the plain [mysqld] group, so the shared settings apply to both instances.
-
7 Question 7 Order list Security
A healthcare provider must rotate the password of an application account, app_reporter, which is currently configured with the mysql_native_password plugin. The provider requires that the old password remain valid for a 24-hour overlap window so that deployed services can switch over without an outage, and that the change be recorded in a way that can be verified later. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Change the password with ALTER USER and the new value, retaining the current password
- Verify both credentials authenticate and check the account in mysql.user
- Deploy the new password to the application configuration and confirm successful logins
- Set a dual password retention period for the account using ALTER USER with RETAIN CURRENT PASSWORD
- Discard the retained password with ALTER USER DISCARD OLD PASSWORD after the window closes
Correct Answer:- Set a dual password retention period for the account using ALTER USER with RETAIN CURRENT PASSWORD
- Deploy the new password to the application configuration and confirm successful logins
- Change the password with ALTER USER and the new value, retaining the current password
- Verify both credentials authenticate and check the account in mysql.user
- Discard the retained password with ALTER USER DISCARD OLD PASSWORD after the window closes
ExplanationThe dual-password feature in MySQL 8.0 works by running ALTER USER ... IDENTIFIED BY with RETAIN CURRENT PASSWORD, which keeps the prior credential valid alongside the new one. The new password must then be deployed and tested while both remain valid, and the old credential is removed only after the overlap closes with DISCARD OLD PASSWORD. Setting the retention clause as a standalone prior step is not how the feature works, so the change and retention are a single ALTER USER statement. Verification of both credentials should precede removal of the old one, otherwise services could fail during switchover.
-
8 Question 8 Single choice Security
A payments company stores cardholder tokens in an InnoDB table and must encrypt data at rest. The company runs MySQL 8.0 Enterprise Edition on a host where the DBA team must not hold the master encryption key, and the key must be stored outside the database server host. The company also wants keys rotated without rebuilding tables. Which approach BEST satisfies these constraints?
Correct Answer: BExplanationThe keyring_oci plugin stores master keys in Oracle Cloud Infrastructure Vault, which keeps them off the database host and allows the key owner to be separate from the DBA team, meeting the separation requirement. Keyring plugins that store the key on the same host, such as keyring_file, fail the stated constraint because the keys reside alongside the data. An encrypted keyring file protected by a startup password still places the key material on the server host. Moving tablespace keys into application configuration is not a supported InnoDB key management mechanism and breaks the encryption model.
-
9 Question 9 Single choice Server Installation and Configuration
A DBA is upgrading a production MySQL 5.7 server to MySQL 8.0 using in-place upgrade. The change window is two hours, and rollback must be possible if the new version fails validation. The application relies on the legacy default authentication plugin for a service account that cannot yet be migrated. Which action should the DBA take BEFORE starting the upgrade?
Correct Answer: CExplanationRunning mysqlcheck with --check-upgrade identifies objects that are incompatible with MySQL 8.0 before the upgrade, and a logical backup gives a rollback path since in-place upgrades cannot be downgraded. The 5.7 server does not support default_authentication_plugin being set to caching_sha2_password in a way that migrates the legacy account, and the stem notes the account cannot yet be migrated. Deleting the mysql schema destroys the grant tables and makes rollback impossible. Upgrading replicas first while skipping the primary reverses the required order and does not satisfy the validation requirement.
-
10 Question 10 Drag and drop Architecture
A DBA is tuning a MySQL 8.0 InnoDB server that handles heavy write workloads on a host with 64 GB RAM and fast NVMe storage. The DBA needs to size memory structures and redo capacity for the workload while keeping the working set resident. Match each tuning goal to the parameter that controls it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Limit how many rows a single session can sort before spilling to diskAllow more redo log capacity so checkpoints do not force frequent flushing under heavy writesKeep the frequently accessed data and index pages cached in memoryinnodb_redo_log_capacityquery_cache_sizeinnodb_buffer_pool_sizesort_buffer_sizeinnodb_flush_log_at_trx_commitCorrect Answer:- Keep the frequently accessed data and index pages cached in memory → innodb_buffer_pool_size
- Allow more redo log capacity so checkpoints do not force frequent flushing under heavy writes → innodb_redo_log_capacity
- Limit how many rows a single session can sort before spilling to disk → sort_buffer_size
Explanationinnodb_buffer_pool_size governs the in-memory cache of InnoDB data and index pages, which is the main lever for keeping the working set resident. In MySQL 8.0.30 and later, innodb_redo_log_capacity sets total redo log space, and larger capacity reduces checkpoint-driven flushing under heavy writes. sort_buffer_size is a per-session allocation used for sorting. innodb_flush_log_at_trx_commit controls durability at commit rather than capacity, and query_cache_size was removed in MySQL 8.0, so neither matches the goals.
-
11 Question 11 Multiple choice Backups and Recovery
A DBA is designing the backup strategy for a 3 TB MySQL 8.0 InnoDB database that must be restorable to any second within the last 14 days and must minimise impact on the production server during business hours. The team has a dedicated backup host with access to the data directory of a replica. Which TWO elements should be included? (Choose two.)
Correct Answer: D, EExplanationCombining periodic full and incremental physical backups with MySQL Enterprise Backup gives fast restores at scale while keeping the load on the replica host, and continuous binary log archival covering 14 days supplies point-in-time recovery to any second. Nightly mysqldump against the primary during business hours is heavy and slow to restore at 3 TB. Setting binary log expiry to one hour destroys the history needed for 14-day recovery. Copying a running data directory without locking or a consistent backup tool produces an inconsistent, unrecoverable copy.
-
12 Question 12 Single choice Monitoring and Maintenance
A capacity planning review for a MySQL 8.0 cluster shows that the data directory has grown steadily, but the team cannot tell whether growth comes from user tables, the undo tablespaces, or binary logs. The DBA needs a method to attribute storage growth by schema and table using information the server already maintains, without installing external tooling. Which approach is the MOST appropriate?
Correct Answer: BExplanationIn MySQL 8.0 the INFORMATION_SCHEMA.TABLES view reports data_length and index_length per table, so summing these by table_schema attributes storage to schemas and tables from server metadata. Binary log and undo growth are separate and are inspected through their own means, but for user table attribution this view is the right source. The mysql.user table holds account definitions, not storage data. Slow query log row counts measure query work rather than disk usage. Error log warnings report failures and do not measure growth.
-
13 Question 13 Dropdown High Availability Techniques
A DBA is configuring a MySQL 8.0 replica that receives changes from two source servers, each holding a different schema, and must apply both streams into one replica without conflicts. The replica will be configured with a named channel for each source. Complete the statement by selecting the correct value for each blank.
Choose the correct value for each blank.
CHANGE REPLICATION SOURCE TO SOURCE_HOST='db-east.example.com', SOURCE_USER='repl' FOR CHANNEL ;
START REPLICA FOR CHANNEL 'east';Correct Answer:CHANGE REPLICATION SOURCE TO SOURCE_HOST='db-east.example.com', SOURCE_USER='repl' FOR CHANNEL 'east';
START REPLICA REPLICA FOR CHANNEL 'east';ExplanationMultisource replication in MySQL 8.0 is configured per named channel, and FOR CHANNEL 'east' in CHANGE REPLICATION SOURCE TO binds the source settings to that channel. START REPLICA with FOR CHANNEL starts only that channel's threads, which is how the two streams are managed independently. The 8.0.23 and later syntax uses REPLICA and SOURCE terminology, so START REPLICA is the correct statement. The remaining options either name a channel that does not match the one used in the statement or use a non-existent statement keyword.
-
14 Question 14 Single choice Architecture
A team is designing a MySQL 8.0 deployment for a multi-tenant application. Each tenant's data must remain in its own physical tablespace file so that a single tenant can be exported, moved, or dropped without touching other tenants. The schema per tenant is identical, and the team wants to limit the number of tables held in the shared system tablespace. Which design BEST meets these requirements?
Correct Answer: BExplanationWith innodb_file_per_table enabled, which is the default in MySQL 8.0, each InnoDB table lives in its own .ibd file, so tables per tenant can be moved or dropped independently, and separate schemas make the tenant boundary explicit. Partitioning inside the system tablespace keeps all data in one file and defeats the separation requirement. General tablespaces group many tables into one file, which again prevents per-tenant removal. MyISAM does not meet the transactional requirements implied by a multi-tenant application and is not the mechanism the team asked for.
-
15 Question 15 Order list Backups and Recovery
A DBA must restore a MySQL 8.0 instance to a clean state after a logical corruption event that occurred at 14:12. The most recent logical backup was taken at 02:00 with mysqldump using --single-transaction and --source-data. Binary logs are available. The restored server must not replay the corrupting statement. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Replay binary log events from that position up to just before 14:12 using mysqlbinlog with a stop-datetime
- Stop client access and ensure no further writes reach the restored instance
- Note the binary log file and position from the CHANGE REPLICATION SOURCE comment in the dump
- Verify the restored data and reconnect applications
- Load the logical dump file into the restored server to restore the state as of 02:00
Correct Answer:- Load the logical dump file into the restored server to restore the state as of 02:00
- Note the binary log file and position from the CHANGE REPLICATION SOURCE comment in the dump
- Replay binary log events from that position up to just before 14:12 using mysqlbinlog with a stop-datetime
- Stop client access and ensure no further writes reach the restored instance
- Verify the restored data and reconnect applications
ExplanationThe dump written with --source-data records the binary log coordinates in a comment, which marks where point-in-time replay must begin. Writes must be stopped before loading so no new transactions interfere, then the logical dump restores the 02:00 state. Replay from the recorded coordinates up to a stop time just before 14:12 excludes the corrupting statement, and only after verification should applications reconnect. Replaying before loading the dump would apply changes against an inconsistent baseline, and reconnecting first risks new writes being mixed into the recovery.
These are 15 of the 140 questions in the full 1Z0-908 pack.
Get All 140 QuestionsGet all 140 questions & answers
Full access options for Oracle 1Z0-908
Self-study
PDF Version
- 140 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 140 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 140 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the 1Z0-908 Exam (MySQL 8.0 Database Administrator) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.