Microsoft Exam Questions

Which Windows PowerShell command should you run?

You are responsible for managing Office 365 for your customer.
You need to create a Microsoft SharePoint site that meets the following requirements:
– Enable external sharing.

– Prevent usage of guest links to share documents.
– Set the site quota to 15 gigabytes (GB).
– Set the compatibility level of the site collection to SharePoint 2016 or later.
You connect to SharePoint Online by using the SharePoint Online Management Shell.
Which Windows PowerShell command should you run? collection. The StorageQuota parameter specifies the storage quota for this site collection in megabytes.

A.
New-SPOSite –Url http://contoso.sharepoint.com/sites/mynewsite -StorageQuota 15000 -SharingCapability
ExternalUserAndGuestSharing

B.
New-SPOSite –Url http://contoso.sharepoint.com/sites/mynewsite -StorageQuota 15000 –CompatibilityLevel
15 –SharingCapability ExternalUserSharingOnly

C.
New-SPOSite –Url http://contoso.sharepoint.com/sites/mynewsite -StorageQuota 15 –CompatibilityLevel 15
–SharingCapability ExternalUserSharingOnly

D.
New-SPOSite –Url http://contoso.sharepoint.com/sites/mynewsite -StorageQuota 15000 -SharingCapability
ExternalUserSharingOnly

Explanation:

The New-SPOSite cmdlet creates a new site collection. The Url parameter specifies the full URL of the new site