AWS Certified Alexa Skill Builder – Specialty — Question 39
An Alexa Skill Builder is using the AudioPlayer.Play directive and would like to automatically start the next audio track at the end of the current track.
Which AudioPlayer playBehavior values will allow the Builder to achieve this without changing the audio currently playing? (Choose two.)
Answer options
- A. REPLACE_ALL
- B. CLEAR_ENQUEUED
- C. REPLACE_ENQUEUED
- D. ENQUEUE
- E. CLEAR_ALL
Correct answer: C, D
Explanation
The correct answers, C (REPLACE_ENQUEUED) and D (ENQUEUE), allow the next audio track to be added to the queue or replace tracks that are queued without interrupting the currently playing audio. The other options, A (REPLACE_ALL) and E (CLEAR_ALL), would disrupt the current audio by replacing or clearing all tracks, while B (CLEAR_ENQUEUED) would remove any queued tracks, which is not desirable in this case.