Oracle 1z0-908 Exam Practice Questions (P. 1)
- Full Access (152 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #1
Examine this statement, which executes successfully:

You want to improve the performance of this query:

Which change enables the query to succeed while accessing fewer rows?

You want to improve the performance of this query:

Which change enables the query to succeed while accessing fewer rows?
- AALTER TABLE world.city ADD SPATIAL INDEX (Name);
- BALTER TABLE world.city ADD SPATIAL INDEX (Population);
- CALTER TABLE world.city ADD INDEX (Population);Most Voted
- DALTER TABLE world.city ADD INDEX (Name);
- EALTER TABLE world.city ADD FULLTEXT INDEX (Name);
- FALTER TABLE world.city ADD FULLTEXT INDEX (Population);
Correct Answer:
B
B
send
light_mode
delete
Question #2
Which three are characteristics of a newly created role? (Choose three.)
- AIt can be dropped using the DROP ROLE statement.Most Voted
- BIt is stored in the mysql.role table.
- CIt is created as a locked account.Most Voted
- DIt can be renamed using the RENAME ROLE statement.
- EIt can be granted to user accounts.Most Voted
- FIt can be protected with a password.
Correct Answer:
AEF
AEF
send
light_mode
delete
Question #3
You have configured GTID-based asynchronous replication with one master and one slave.
A user accidentally updated some data on the slave.
To fix this, you stopped replication and successfully reverted the accidental changes.
Examine the current GTID information:

You must fix GTID sets on the slave to avoid replicating unwanted transactions in case of failover.
Which set of actions would allow the slave to continue replicating without erroneous transactions?
A user accidentally updated some data on the slave.
To fix this, you stopped replication and successfully reverted the accidental changes.
Examine the current GTID information:

You must fix GTID sets on the slave to avoid replicating unwanted transactions in case of failover.
Which set of actions would allow the slave to continue replicating without erroneous transactions?
- ARESET MASTER;
SET GLOBAL gtid_purged=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-10167; - BSET GLOBAL gtid_purged=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-2312,bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb:1-9;
SET GLOBAL gtid_executed=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-10167; - CRESET SLAVE;
SET GLOBAL gtid_purged=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-3820;
SET GLOBAL gtid_executed=aaaaaaaa-aaaa-aaaa-aaaa—aaaaaaaaaaaa:1-10300; - DRESET MASTER;
SET GLOBAL gtid_purged-aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-2312;
SET GLOBAL gtid_executed=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-10167; - ERESET SLAVE;
SET GLOBAL gtid_purged=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1-10167;
Correct Answer:
D
D
send
light_mode
delete
Question #4
The data in this instance is transient; no backup or replication will be required. It is currently under performing.
The database size is static and including indexes is 19G.
Total system memory is 32G.
After profiling the system, you highlight these MySQL status and global variables:

The OS metrics indicate that disk is a bottleneck.
Other variables retain their default values.
Which three changes will provide the most benefit to the instance? (Choose three.)
The database size is static and including indexes is 19G.
Total system memory is 32G.
After profiling the system, you highlight these MySQL status and global variables:

The OS metrics indicate that disk is a bottleneck.
Other variables retain their default values.
Which three changes will provide the most benefit to the instance? (Choose three.)
- Ainnodb_flush_log_at_trx_commit=1
- Bbuffer_pool_size=24G
- Cinnodb_log_file_size=1G
- Dsync_binlog=0Most Voted
- Einnodb_doublewrite=0Most Voted
- Fmax_connections=10000
- Ginnodb_undo_directory=/dev/shmMost Voted
Correct Answer:
ACF
ACF
send
light_mode
delete
Question #5
Which statement is true about InnoDB persistent index statistics?
- AUpdating index statistics is an I/O expensive operation.
- BIndex statistics are calculated from pages buffered in the buffer pool for tables with InnoDB storage engine.
- CSetting innodb_stats_auto_recalc=ON causes statistics to be updated automatically when a new index is created.
- DExecution plans based on transient index statistics improve precision when innodb_stats_persistent_sample_pages is increased.Most Voted
- EIncreasing innodb_stats_persistent_sample_pages determines higher pages scanning speed, at the cost of increased memory usage.
- FTables are scanned and index statistics recalculated when an instance is restarted.
Correct Answer:
D
D
send
light_mode
delete
All Pages