0
0
Postmantesting~20 mins

Monitor scheduling in Postman - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Monitor Scheduling Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Monitor Scheduling Frequency

In Postman Monitor scheduling, what does setting the frequency to every 12 hours mean?

AThe monitor runs once a day at 12 PM.
BThe monitor runs every 12 minutes.
CThe monitor runs twice a day, once every 12 hours.
DThe monitor runs every 24 hours twice.
Attempts:
2 left
💡 Hint

Think about how many times 12 hours fits into a day.

Predict Output
intermediate
2:00remaining
Output of Monitor Schedule Setup Code

What will be the result of this Postman Monitor scheduling setup code snippet?

Postman
pm.monitor.schedule({
  interval: 'PT1H',
  timezone: 'UTC'
});
pm.test('Schedule interval test', () => {
  pm.expect(pm.monitor.schedule().interval).to.eql('PT1H');
});
ATest passes because interval is set to 1 hour.
BTest fails because interval is missing.
CSyntax error due to wrong method usage.
DTest fails because timezone is not validated.
Attempts:
2 left
💡 Hint

Check if the interval is correctly set and retrieved.

assertion
advanced
2:00remaining
Correct Assertion for Monitor Next Run Time

Which assertion correctly verifies that the next scheduled run time of a Postman Monitor is in the future?

Apm.expect(new Date(pm.monitor.nextRun)).to.be.below(new Date());
Bpm.expect(new Date(pm.monitor.nextRun)).to.be.above(new Date());
Cpm.expect(pm.monitor.nextRun).to.eql(new Date());
Dpm.expect(pm.monitor.nextRun).to.be.null;
Attempts:
2 left
💡 Hint

Think about comparing dates to check if nextRun is after now.

🔧 Debug
advanced
2:00remaining
Identify the Bug in Monitor Scheduling Script

What is the bug in this Postman Monitor scheduling script?

Postman
pm.monitor.schedule({
  interval: 'PT24H',
  timezone: 'UTC'
});

if(pm.monitor.schedule().interval === 'PT12H') {
  console.log('Monitor runs every 12 hours');
}
Apm.monitor.schedule() cannot be called twice.
BThe interval value 'PT24H' is invalid format.
CThe timezone 'UTC' is not supported.
DThe if condition uses assignment (=) instead of comparison (== or ===).
Attempts:
2 left
💡 Hint

Look carefully at the if statement condition.

framework
expert
3:00remaining
Best Practice for Scheduling Monitors in Postman CI/CD Pipeline

In a CI/CD pipeline using Postman Monitors, which scheduling approach ensures tests run only after successful code deployment?

ATrigger the monitor run manually after deployment completes.
BSet the monitor to run daily at midnight.
CUse a fixed schedule and ignore deployment events.
DSchedule the monitor to run every hour regardless of deployment status.
Attempts:
2 left
💡 Hint

Consider how to align monitor runs with deployment success.