An app submits a Sora 2 request to create an eight-second product video. The request returns at once with status "queued". What should the app do next?
- Exam domain
- Implement computer vision solutions10–15% of the exam
- Difficulty
- Medium
- In this mock
- 14 questions on this domainPractise this domain
Why the exam asks this
Implement computer vision solutions: Design and implement image- and video-generation solutions.
Objective in the exam guide: Implement a solution that generates videos from text prompts and reference media.
Video takes minutes to render, so the integration pattern differs from chat. The exam checks you build it as an async job.
Why C is the answer
Poll the video job status until it completes, then download the MP4
Video generation is asynchronous: you create a job, check its status, and download the finished video once it completes.
Remember: Video generation is a job: create, poll, download.
How it works
Sora 2 in Foundry generates video from text, from images, or from a generated video.
Generation is asynchronous: create the job, check status until it completes, then download the MP4.
Options include size (for example 1280x720) and duration (4, 8 or 12 seconds; default 4). A reference image can anchor the first frame.
Clues in the question
The words that point to the answer, and what each one tells you.
- Returns at once with status "queued"
- An asynchronous job.
In detail
- The API has endpoints to create, get status, download, list and delete videos.
- Jobs stay available for 24 hours, and two creation jobs can run at the same time.
Side by side with look-alikes
| Step | Endpoint |
|---|---|
| Start rendering | Create video |
| Check progress | Get video status |
| Fetch the file | Download video |
| Housekeeping | List and delete videos |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Resubmit the same request every second until a video appearsWrongMost tempting
Resubmitting creates more jobs and hits the two-job limit.
Why it tempts: Retrying feels like the fix when nothing comes back. But it creates new jobs and runs into the concurrent job limit.
B. Wait for a webhook that Sora 2 sends to the user's emailWrong
No such email webhook is described.
C. Poll the video job status until it completes, then download the MP4Right
Video generation is a job: create, poll, download.
D. Treat the response as the finished video and display itWrong
A queued job has no video yet.
In practice
- Poll with a sensible interval and a timeout; rendering usually takes minutes.
- Download promptly, since jobs expire after 24 hours.
Use case
An illustrative scenario, not a real incident.
A shop's back end creates the job, polls every 15 seconds, and stores the MP4 once the status is completed.
See how it works
sequenceDiagram
participant A as App
participant S as Sora 2 API
A->>S: Create video (prompt, 8 seconds, 1280x720)
S-->>A: id, status queued
loop Until completed
A->>S: Get status
S-->>A: in progress
end
A->>S: Download video
S-->>A: MP4How to read this chart
- 1. App sends "Create video (prompt, 8 seconds, 1280x720)" to Sora 2 API.
- 2. App gets a reply from Sora 2 API: "id, status queued".
- 3. App sends "Get status" to Sora 2 API.
- 4. App gets a reply from Sora 2 API: "in progress".
- 5. App sends "Download video" to Sora 2 API.
- 6. App gets a reply from Sora 2 API: "MP4".